package com.jxd.dianping.common;

import lombok.Data;

@Data
public class CommonError {
    private Integer errorCode;
    private String errorMsg;

    public CommonError(Integer errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public CommonError(EmBusinessError emBusinessError) {
        this.errorCode = emBusinessError.getErrorCode();
        this.errorMsg = emBusinessError.getErrorMsg();
    }
}
